<?php
define ( 'SCRIPT', 'index' );

$tpl = Mid::template ();
$cache = Mid::cache ( 'file' );

if (isset ( $_GET ['reg'] )) {
	Mid::load ( "m:module:register" );
	$tpl->display ( 'register.htm' );
} else {
	$cache->set ( 'data', 'abc' );
	echo $_POST['filter'];
	$tpl->assign ( 'data', $cache->get ( 'data' ) );
	$tpl->display ( 'index.htm' );
}
?>